package com.itic.appbase.framework.type;

import java.sql.Date;
import java.util.HashMap;
import java.util.Map;

import com.itic.appbase.framework.utils.BaseStringUtils;


public enum PushType {
	UserValidateFail("认证失败","您填写的信息认证失败,请到个人资料中完善。"),
	UserValidateSuccess("认证通过","您填写的信息已经认证通过。"),
	HunterPostTaskHaveSignup("订单有人报名","您发布的普招订单({taskName})人报名了，请到普招-快招中查看详情。");
	private String alert;
	private String title;
	private PushType(String title,String alert){
		this.alert = alert;
		this.title = title;
	}
	public String getAlert() {
		return alert;
	}
	public String getTitle() {
		return title;
	}
	public  String getAlert(Map<String,Object> params){
		return BaseStringUtils.bracketReplace(alert, params);
	}
	
	
	
/*	public static void main(String[] args) {
		Map<String ,Object> params = new HashMap<>();
		params.put("taskName", "123");
		String alert = PushType.getAlert(PushType.HunterPostTaskHaveSignup.getAlert(),params);
		System.out.println(alert);
	}*/
	
}
